﻿<UserControl x:Class="Collab.Modules.ContactBrowser.View.MainView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Collab.Modules.ContactBrowser.ViewModel"
        xmlns:view="clr-namespace:Collab.Modules.ContactBrowser.View">
    <UserControl.Resources>
        
        <DataTemplate DataType="{x:Type vm:ContactsViewModel}">
            <view:ContactsView/>
        </DataTemplate>
        
        <DataTemplate DataType="{x:Type vm:LoginViewModel}">
            <view:LoginView/>
        </DataTemplate>
        
    </UserControl.Resources>
    
    <ContentControl x:Name="ContentView" Content="{Binding Path=CurrentViewModel}"></ContentControl>
    
</UserControl>
